<?php
header('Content-type: text/html; charset=utf-8');
include_once($_SERVER["DOCUMENT_ROOT"]."/public/function.php");
$config = include_once($_SERVER["DOCUMENT_ROOT"]."/public/config.php");

$res = dele($config,'fenlei',$_GET['id']);


if($res){
    echo '<script>alert("删除成功！");window.location.href="index.php"</script>';
}else{
    echo $sql; die;
    echo '<script>alert("删除失败！");window.location.href="index.php"</script>';
    
}
?>